﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace STF.Blog.Model
{/// <summary>
/// 封面表
/// </summary>
    public class Cover:BaseEntity
    {

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(256), Column(TypeName = "nvarchar(256)")]
        [Display(Name = "封面标题")]
        public string Details { get; set; }

        [StringLength(255), Column(TypeName = "varchar(255)")]
        [Display(Name = "封面1")]
        public string Image1 { get; set; }

        [StringLength(255), Column(TypeName = "varchar(255)")]
        [Display(Name = "封面2")]
        public string Image2 { get; set; }

        [StringLength(255), Column(TypeName = "varchar(255)")]
        [Display(Name = "封面3")]
        public string Image3 { get; set; }

        //[ForeignKey(nameof(Blog))]
        //[Display(Name ="外键(Blog)")]
        //public int Bid { get; set; }

        //public Blog Blog { get; set; }
    }
}
